package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Accident {

    public static final int STATE_NORMAL = 1;//已验证,待审核
    public static final int STATE_QUIT = 0;//待验证

    /**
     * id
     */
    private Long id;


    /**
     * 事故发生时间
     */
    //转换成json格式的日期类型
    //数据传入使用日期类型
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date oTime;


    public Date getoTime() {
        return oTime;
    }

    public void setoTime(Date oTime) {
        this.oTime = oTime;
    }

    /**
     * 事故发生地点
     */
    private String oLocation;

    public String getoLocation() {
        return oLocation;
    }

    public void setoLocation(String oLocation) {
        this.oLocation = oLocation;
    }

    /**
     * 当前状态
     */
    private int status;
    /**
     * 员工对象(录入人)
     */

    private Employee inputUser;
    /**
     * 客户对象
     */
    private Client client;
    /**
     * 保单对象
     */
    private GuaranteeBill guaranteeBill;

    /**
     * 事故责任
     */
    private String duty;

    /**
     * 事故备注
     */
    private String remark;
}